import Home from '@/views/Home'
import Classify from '@/views/Classify'
import My from '@/views/My'
import OderForm from '@/views/OderForm'
import NotFocunt from '@/views/NotFocunt'
import Vue from 'vue'

import VueRouter from 'vue-router'

Vue.use(VueRouter)
export default new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/home',
      component: Home,
      name: 'Home',
    },
    {
      path: '/classify',
      component: Classify,
      name: 'Classify',
    },
    {
      path: '/my',
      component: My,
      name: 'My',
    },
    {
      path: '/oderForm',
      component: OderForm,
      name: 'OderForm',
    },
    {
      path: '*',
      component: NotFocunt,
      name: 'NotFocunt',
    },
  ],
})
